package com.itheima.a02abstratdemo2;

public class Test5 {
    public static void main(String[] args) {
        //创建对象

        Frog f = new Frog("小绿",1);
        System.out.println(f.getName() + ", " + f.getAge());
        f.drink();
        f.eat();
    }
}
